<template>
  <div class="myheader">
    <div>
      <slot name="left"></slot>
    </div>
    <div>{{ title }}</div>
    <div>
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: ["title"],
};
</script>

<style lang="less" scoped>
.myheader {
  height: 50px;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  color: #5ba8fc;
  font-weight: 700;
  line-height: 50px;
  .van-icon {
    font-size: 16px;
    font-weight: 700;
  }
}
</style>